package com.lancoo.znbkxx.teacher.aibkGenerateTestPaper.aibkReplaceQues.aibkQuesReplaceGCT

import android.view.View
import androidx.appcompat.app.AppCompatActivity
import com.lancoo.znbkxx.teacher.aibkTestCoach.kBase.KBaseFragment
import com.lancoo.znbkxx.teacher.R
import com.lancoo.znbkxx.teacher.aibkTestCoach.networkRequest.entity.TestPaperReplaceQuesInfor
import kotlinx.android.synthetic.main.aibk_include_article_view.view.*
import kotlinx.android.synthetic.main.aibk_include_parent_audioplayer_a.view.*
import kotlinx.android.synthetic.main.aibk_include_ques_assessment.view.*

class QuesReplaceFragmentGct(
        val activity: AppCompatActivity,
        val testPaperReplaceQuesInfor: TestPaperReplaceQuesInfor,
        val index_A:Int
): KBaseFragment() {

    private var rootView: View? = null

    override fun createLayout(): Int {
        return R.layout.aibk_fragment_model_splitlayout
    }

    override fun initView(view: View?) {
        rootView = view
        rootView!!.RlAudioPlayer.visibility = View.GONE
        rootView!!.RlArticleView.visibility = View.GONE

        showEvaluationCoefficient()

    }

    //显示评估系数
    private fun showEvaluationCoefficient() {
        rootView!!.TvNanDu.text = testPaperReplaceQuesInfor[index_A].HVAL
        rootView!!.TvQuFenDu.text = testPaperReplaceQuesInfor[index_A].DVAL
        rootView!!.TvBaoGuangDu.text = testPaperReplaceQuesInfor[index_A].EXVAL
    }

}